using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Dimok.Data.DataSources;

namespace Data.DataSources {
	public abstract class LoanBaseDataSource : ObjectDataSourceBase {
		public int LoanID { set { SetSelectParameter("LoanID",value); } }
		public override DataView SelectEx() {
			if( Wheres() == "" )	throw new Exception("Must use a filter when calling " + this.GetType().Name + " datasource.");
			return base.SelectEx();
		}
		public override DataView SelectEx(int LoanID) {
			return Select("LoanID=@LoanID",LoanID);
		}

	}
}